package com.springboot.cloud.demos.entity.form;

import com.springboot.cloud.common.web.entity.form.BaseForm;
import com.springboot.cloud.demos.entity.po.AppVersion;
import com.springboot.cloud.demos.entity.po.Banner;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@ApiModel
@Data
public class AppVersionForm extends BaseForm<AppVersion> {

    @NotBlank(message = "产品名称不能为空")
    @ApiModelProperty(value = "产品名称")
    private String title;

    @ApiModelProperty(value = "产品描述")
    private String content;

    @ApiModelProperty(value = "产品描述")
    private Integer versionCode;

    @ApiModelProperty(value = "产品描述")
    private boolean forceUpdate;

    @ApiModelProperty(value = "产品描述")
    private String url;
}
